home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_01
/
2n01048b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-11-12
|
255 b
|
19 lines
function search(var s : string) : integer;
var
i : integer;
found : boolean;
begin
found := false;
i := MAX;
while (i > 0) and (not found) do
if s = table[i] then
found := true
else
i := i - 1;
search := i;
end;